home *** CD-ROM | disk | FTP | other *** search
/ Ultra Gameplayers 101 / Ultra Game Players Magazine, No. 101 - September 1997 (Imagine Publishing, Inc.)(1997).iso / pc / new_ugp.dxr / 00263_Video Control Class.ls < prev    next >
Encoding:
Text File  |  1997-07-10  |  629 b   |  35 lines

  1. property videoDisplay, videoControl, ancestor
  2.  
  3. on new me, parameterList
  4.   set videoControl to getProp(parameterList, #videoControl)
  5.   set videoDisplay to getaProp(parameterList, #videoDisplay)
  6.   return me
  7. end
  8.  
  9. on TurnOn me
  10.   case videoControl of
  11.     #play:
  12.       play frame videoDisplay
  13.     #stop:
  14.       stop(videoDisplay)
  15.     #slow:
  16.       slow(videoDisplay)
  17.     #fwdframe:
  18.       fwdframe(videoDisplay)
  19.     #backframe:
  20.       backframe(videoDisplay)
  21.   end case
  22. end
  23.  
  24. on TurnOff me
  25. end
  26.  
  27. on dispose me
  28.   set videoDisplay to 0
  29.   set videoControl to 0
  30.   if objectp(ancestor) then
  31.     dispose(ancestor)
  32.   end if
  33.   set ancestor to 0
  34. end
  35.